//
//  OrderItemCell.m
//  JiaoX
//
//  Created by yinqy on 15/1/15.
//  Copyright (c) 2015年 北京娇羞科技有限公司. All rights reserved.
//

#import "OrderItemCell.h"

@implementation OrderItemCell

+ (instancetype)cellWithTableView:(UITableView *)tableView
{
    static NSString *ORDERITEM_ID = @"ORDERITEMCELL";
    OrderItemCell *cell = [tableView dequeueReusableCellWithIdentifier:ORDERITEM_ID];
    if (!cell) {
        cell = [[OrderItemCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:ORDERITEM_ID];
    }
    return cell;
}
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        OrderCellView *orderCellView =  [[OrderCellView alloc]init];
        _orderCellView = orderCellView;
        [self addSubview:orderCellView];
    }
    return self;
}

-(void)setOrderItemframe:(OrderItemFrame *)orderItemframe{
    _orderItemframe = orderItemframe;
    [_orderCellView setOrderFrame:orderItemframe];
}
@end
